home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / island_fishing.swf / scripts / frame_143 / PlaceObject2_147_12 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-01-13  |  3KB  |  93 lines

  1. onClipEvent(enterFrame){
  2.    if(this.canmove <= 0)
  3.    {
  4.       this._x = _root.hook._x;
  5.       this._y = _root.hook._y;
  6.    }
  7.    if(_root.fishesc >= 1)
  8.    {
  9.       this.play();
  10.       this.hooked = 0;
  11.       _root.guy.gotoAndStop(1);
  12.    }
  13.    if(this.hitTest(_root.rodend))
  14.    {
  15.       unloadMovie(this);
  16.       _root.guy.head.gotoAndPlay("yar");
  17.       _root.fish = _root.fish + 1;
  18.       _root.scorepopup.score.text = "5";
  19.       _root.scorepopup.play();
  20.       _root.score = _root.score + 1;
  21.       _root.score = _root.score + 1;
  22.       _root.score = _root.score + 1;
  23.       _root.score = _root.score + 1;
  24.       _root.score = _root.score + 1;
  25.       _root.hunger = _root.hunger + 1;
  26.       _root.hunger = _root.hunger + 1;
  27.       _root.hunger = _root.hunger + 1;
  28.       _root.hunger = _root.hunger + 1;
  29.       _root.hunger = _root.hunger + 1;
  30.       _root.hunger = _root.hunger + 1;
  31.       _root.hunger = _root.hunger + 1;
  32.       _root.hunger = _root.hunger + 1;
  33.       _root.hunger = _root.hunger + 1;
  34.       _root.hunger = _root.hunger + 1;
  35.    }
  36.    if(this.hitTest(_root.hook))
  37.    {
  38.       if(_root.f1.hooked <= 0)
  39.       {
  40.          if(_root.f3.hooked <= 0)
  41.          {
  42.             if(_root.f4.hooked <= 0)
  43.             {
  44.                if(_root.f5.hooked <= 0)
  45.                {
  46.                   if(_root.f6.hooked <= 0)
  47.                   {
  48.                      if(_root.f7.hooked <= 0)
  49.                      {
  50.                         if(_root.f8.hooked <= 0)
  51.                         {
  52.                            if(_root.f9.hooked <= 0)
  53.                            {
  54.                               if(_root.f10.hooked <= 0)
  55.                               {
  56.                                  if(this.flashing <= 0)
  57.                                  {
  58.                                     _root.guy.gotoAndStop(2);
  59.                                     if(_root.hook._x < 540)
  60.                                     {
  61.                                        _root.hook._x += 0.25;
  62.                                     }
  63.                                     if(_root.hook._y < 390)
  64.                                     {
  65.                                        _root.hook._y += 0.25;
  66.                                     }
  67.                                     _root.fishtimer.play();
  68.                                     this.canmove = 0;
  69.                                     this.hooked = 1;
  70.                                     this._x = _root.hook._x;
  71.                                     this._y = _root.hook._y;
  72.                                  }
  73.                                  else
  74.                                  {
  75.                                     this.canmove = 1;
  76.                                     this.hooked = 0;
  77.                                     if(this._y < 160)
  78.                                     {
  79.                                        this._y = 180;
  80.                                     }
  81.                                  }
  82.                               }
  83.                            }
  84.                         }
  85.                      }
  86.                   }
  87.                }
  88.             }
  89.          }
  90.       }
  91.    }
  92. }
  93.